import http from "../utils/http"

export const collect = (type:string,nid:string)=>{
  return http.post("/collect/",{
    type,
    nid
  })
}

export const cancleCollect = (type:string,nid:string)=>{
  return http.post("/cancle/collect/",{
    type,
    nid
  })
}